package com.hyt.it.ogt.data.enums;

/**
 * 科目是否需要评卷枚举
 */
public enum SubjectMarkTypeEnums {

    UNNEED(0, "流水评卷"),
    NEED(1, "交叉评卷");
    private Integer code;
    private String desc;

    SubjectMarkTypeEnums(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    
    public Integer getCode() {
        return code;
    }


    public String getDesc() {
        return desc;
    }

    public static SubjectMarkTypeEnums getSubjectMarkTypeEnumsByCode(Integer code) {
        for (SubjectMarkTypeEnums markTypeEnums : SubjectMarkTypeEnums.values()) {
            if (markTypeEnums.getCode().equals(code)) {
                return markTypeEnums;
            }
        }
        return null;
    }


}
